#define _CRT_SECURE_NO_WARNINGS 1
#include<math.h>
int IsTheNumber(const int N)
{
    int arr[10] = { 0 };
    int n = (int)sqrt(N);
    if (N == n * n)
    {
        int i = 0, m = N;
        while (m)
        {
            arr[i] = m % 10;
            i++;
            m /= 10;
        }
        int j = 0;
        for (j = 0; j < i; j++)
        {
            int k = 0;
            for (k = 0; k < i; k++)
            {
                if (arr[k] == arr[j] && k != j)
                    return 1;
            }
        }
    }
    return 0;
}